<?=view('header.html')?>

<body class="layui-layout-body">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-side custom-admin">
            <div class="layui-side-scroll">
                <div class="custom-logo">
                    <h2 class="small">M</h2>
                    <h1>CIAMS</h1>
                    <a href="javascript:void(0);" class="icon-font slide-sidebar"><i class="layui-icon layui-icon-shrink-right layui-icon-spread-right"></i></a>
                </div>
                <ul id="Nav" class="layui-nav layui-nav-tree" lay-shrink="all">
                    <?php if(isset($menu) && count($menu)>=1):?>
                    <?php foreach($menu as $pid=>$parent):?>
                    <li class="layui-nav-item">
                        <a href="javascript:;" data-pid="0"><i class="<?=$parent['icon']?>"></i><em><?=$parent['name']?></em></a>
                        <?php if($parent['left']):?>
                        <?php foreach($parent['left'] as $id=>$t):?>
                        <dl class="layui-nav-child">
                            <dd><a href="<?=$t['uri']?>" title="<?=$t['name']?>"> <i class="<?=$t['icon']?>"></i><?=$t['name']?></a></dd>
                        </dl>
                        <?php endforeach;?>
                        <?php endif?>
                    </li>
                    <?php endforeach;?>
                    <?php endif?>

                    <li class="layui-nav-item">
                        <a href="javascript:;" data-pid="0" ><i class="layui-icon layui-icon-logout"></i><em><?=$admin['username']?></em><span class="layui-nav-more"></span></a>
                        <dl class="layui-nav-child">
                            <dd class="layui-this"><a href="" onclick="window.open('/')" target="_blank" title="网站首页"> <i class="layui-icon layui-icon-website"></i>网站首页</a></dd>
                        </dl>
                        <dl class="layui-nav-child">
                            <dd class="layui-this"><a href="<?=url('admin/login/out')?>" title="退出管理"> <i class="layui-icon layui-icon-logout"></i>退出管理</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>
        <div class="layui-body">
            <div class="layui-tab mokui-admintab app-container" lay-allowClose="true" lay-filter="tabs">
                <ul id="appTabs" class="layui-tab-title custom-tab" lay-filter="nav_tab"></ul>
                <!--newcontrol-->
                <div class="layui-tab-control">
                    <!-- <li class="mokui-tab-prev layui-icon layui-icon-left" title="左移动"></li> -->
                    <!-- <li class="mokui-tab-next layui-icon layui-icon-right" title="右移动"></li> -->
                    <li class="mokui-tab-tool layui-icon layui-icon-more tabmore">
                        <ul class="layui-nav" lay-filter="">
                            <li class="layui-nav-item">
                                <a href="javascript:;"></a>
                                <dl class="layui-nav-child">
                                    <dd id="freshThis"><a>刷 新 当 前</a></dd>
                                    <dd id="closeThis"><a>关 闭 当 前</a></dd>
                                    <dd id="closeOther"><a>关 闭 其 他</a></dd>
                                    <dd id="closeAll"><a>关 闭 全 部</a></dd>
                                </dl>
                            </li>
                        </ul>
                    </li>
                </div>
                <!--/newcontrol-->
                <a class="layui-btn layui-btn-sm tabs-refresh" id="refresh_now" title="刷新当前页面"><i class="layui-icon layui-icon-refresh-1" style="line-height:30px"></i></a>
                <div id="appTabPage" class="layui-tab-content">
                </div>
            </div>
        </div>
        <div class="layui-footer">
            <p>© 2020 版权所有：<a href="http://www.lianpuit.com" target="_blank">连云港连普信息科技有限公司</a></p>
        </div>
        <div class="mobile-mask"></div>
    </div>
    <?=view('footer.html')?>
    <script src="/public/assets/mokui/mods/app.js"></script>
    <script type="text/javascript" charset="utf-8">
        layui.config({
            skin: 'mokui',
            base: '/public/assets/mokui/mods/'
        }).use(['home', 'jquery', 'layer', 'tabs'], function () {
            var $ = layui.jquery,
                layer = layui.layer,
                tabs = layui.tabs,
                home = layui.home;
            window.openTabs = function (options) {
                home.openTabs(options);
            }
        });
    </script>
</body>

</html>
